import os

Import('pmallocLibrary')
Import('mcoreLibrary')
Import('mtmLibrary')
Import('toolsEnv')

toolsEnv['CPPPATH'] = ['#library/mcore/include', '#library/mtm/include', '#library/pmalloc/include']

if toolsEnv['BUILD_DEBUG'] == True:
	toolsEnv.Append(CCFLAGS = ' -g')
else:	
	toolsEnv.Append(CCFLAGS = ' -O2')

toolsEnv.Append(CCFLAGS = ' -m64 ')
Export('toolsEnv')

tools_list = Split("""
		bandwidth-pcm
                """)

for tool in tools_list:
	sconscript_path = tool + '/SConscript'
	SConscript(sconscript_path)
